<ul class="list-group">

	<li class="list-group-item">
		<div class="profile">
			<h1>
				<?= ucwords($profile['info']->title); ?>
				<small>&rarr; <?= $this->location_model->get_city_data($profile['info']->city)->cityname; ?>
				</small>
			</h1>

			<ul class="list-inline">
				<li><img class=""
					src="<?=base_url(); ?>assets/images/three-stars.png" /></li>
				<li>
					<button type="button" title="Hit Counter"
						class="btn btn-primary btn-xs btn-success">
						<span class="glyphicon glyphicon-signal"></span>
						<?= $profile['info']->hits; ?>
					</button>
				</li>

				<li class="pull-right"><?php if($profile['info']->lat && $profile['info']->long){?>
					<button type="button" title="View Map" data-toggle="modal" href="#mapModal"
						class="btn btn-primary btn-xs btn-inverse">
						<span class="glyphicon glyphicon-map-marker"></span> Map
					</button> <?php }?> <?php if($profile['info']->email){?>
					<button type="button" title="Send Enquiry"
						class="btn btn-primary btn-xs btn-danger">
						<span class="glyphicon glyphicon-share"></span> Send Enquiry
					</button> <?php }?>
				</li>

			</ul>

		</div>
	</li>

	<li class="list-group-item"><?= $profile['info']->description; ?>
		<ul class="list-inline">
			<li><span class="glyphicon glyphicon-tag"></span>
			</li>
			<?php echo Modules::run('listing/profile/listing_key', $profileID = $profile['info']->id);?>
		</ul></li>


	<li class="list-group-item">
		<div class="clearfix">
			<dl class="col-lg-4">

				<?php if($profile['info']->address1){?>
				<dt>Address:</dt>
				<dd>
					<?= $profile['info']->address1; ?>
				</dd>
				<dd>
					<?= $profile['info']->address2; ?>
				</dd>
				<?php }?>

				<?php if($profile['info']->city){?>
				<dt>City:</dt>
				<dd>
					<?= $this->location_model->get_city_data($profile['info']->city)->cityname; ?>
				</dd>
				<?php }?>

				<?php if($profile['info']->city){?>
				<dt>Region:</dt>
				<dd>
					<?= $this->location_model->get_region_data($profile['info']->state)->statename; ?>
					,
					<?= $this->location_model->get_country_data($profile['info']->country)->country; ?>
					<?= $profile['info']->zip; ?>
				</dd>
				<?php }?>


			</dl>

			<dl class="col-lg-4">

				<?php if($profile['info']->phone1){?>
				<dt>Phone</dt>

				<a id="show_phone" href="#" onclick="showme('widget');"> Show Phone
					No</a>
				<dd id="widget" style="display: none;">
					<?= $profile['info']->phone1; ?>
				</dd>
				<?php }?>

				<?php if($profile['info']->fax){?>
				<dt>Fax</dt>
				<dd>
					<?= $profile['info']->fax; ?>
				</dd>
				<?php }?>

				<?php if($profile['info']->website){?>
				<dt>Website</dt>
				<dd>
					<?= $profile['info']->website; ?>
				</dd>
				<?php }?>


			</dl>

			<dl class="col-lg-4">
				<dd>LOGO (if available)</dd>

				<dd>
					<a href="#">Own this Listing?</a>
				</dd>
			</dl>

		</div>
	</li>


	<li class="list-group-item">
		<div class="clearfix">
			<?php if($term['data']){ ?>
			<?php foreach ($term['data'] as $term):?>
			<dl class="col-lg-4">
				<dt>
					<?=ucfirst($term->caption); ?>
				</dt>
				<dd>
					<?=ucfirst($term->term_value); ?>
				</dd>
			</dl>
			<?php endforeach;?>
			<?php }?>
		</div>
	</li>

</ul>
